package com.jxdinfo.hussar.activitidemo.bean;

import java.io.Serializable;
import java.sql.Timestamp;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 应急事件实体类
 * </p>
 *
 * @author zzd
 * @since 2019-04-22
 */
@TableName("TDB_YJ_M_EVENT")
public class TdbYjMEvent extends Model<TdbYjMEvent> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId("S_EVENT_ID")
	private String sEventId;
	/**
	 * 处置流程id
	 */
	@TableField("S_FLOW_ID")
	private String sFlowId;
	/**
	 * 故障时间
	 */
	@TableField("D_FAULTTIME")
	private Timestamp dFaulttime;
	private String dFaulttimeStr;
	/**
	 * 担当路局
	 */
	@TableField("S_ACT_BUREA")
	private String sActBurea;
	/**
	 * 应急处置路局
	 */
	@TableField("S_DEAL_BUREA")
	private String sDealBurea;
	/**
	 * 车次
	 */
	@TableField("S_TRAINNO")
	private String sTrainno;
	/**
	 * 车组
	 */
	@TableField("S_TRAINSETID")
	private String sTrainsetid;
	/**
	 * 重联车组
	 */
	@TableField("S_JOINTRAINSETID")
	private String sJointrainsetid;
	/**
	 * 故障现象描述
	 */
	@TableField("S_FAULTDESC")
	private String sFaultdesc;
	/**
	 * 发生地点
	 */
	@TableField("S_FAULTPLACE")
	private String sFaultplace;
	/**
	 * 所属线别
	 */
	@TableField("S_LINE")
	private String sLine;
	/**
	 * 停车时间
	 */
	@TableField("S_STOPTIME")
	private Timestamp sStoptime;
	private String sStoptimeStr;
	/**
	 * 开车时间
	 */
	@TableField("S_RUNTIME")
	private Timestamp sRuntime;
	private String sRuntimeStr;
	/**
	 * 处置方式
	 */
	@TableField("S_DEALWAYS")
	private String sDealways;
	/**
	 * 所属交路
	 */
	@TableField("S_RUT")
	private String sRut;
	/**
	 * 故障功能分类
	 */
	@TableField("S_FAULTTYPE")
	private String sFaulttype;
	/**
	 * 创建人
	 */
	@TableField("S_CREATOR")
	private String sCreator;
	/**
	 * 创建时间
	 */
	@TableField("D_CREATE_DATE")
	private String dCreateDate;
	/**
	 * 修改人
	 */
	@TableField("S_EDITOR")
	private String sEditor;
	/**
	 * 修改时间
	 */
	@TableField("D_EDIT_DATE")
	private String dEditDate;
	/**
	 * 是否可用(Y 可用,N 不可用）
	 */
	@TableField("C_ABLE")
	private String cAble;
	/**
	 * 事件名称
	 */
	@TableField("S_EVENT_NAME")
	private String sEventName;
	/**
	 * 创建单位
	 */
	@TableField("S_DEPT")
	private String sDept;
	@TableField("s_status")
	private String sStatus;
	@TableField("s_start_date")
	private String sStartDate;
	@TableField("d_operate_date")
	private String dOperateDate;
	// 车厢号
	@TableField("S_TRAIN_C_NUMBER")
	private String sTrainCNumber;
	// 是否停车
	@TableField("S_PARK_OR_NOT")
	private String sParkOrNot;
	// 车组是否故障车
	@TableField("S_TRAINSETID_BOXH")
	private String sTrainsetidboxh;
	// 重连车组是否是故障车
	@TableField("S_JOINTRAINSETID_BOXH")
	private String sJointrainsetidboxh;
	// 主控车
	@TableField("S_CONTROL_TRAIN")
	private String sControlTrain;
	// 事件追踪
	@TableField("D_EVENT_TRACK_DATE")
	private Timestamp dEventTrackDate;
	// 车型
	@TableField("S_TRAIN_TYPE")
	private String sTrainType;
	private String dEventTrackDateStr;

	private String sActBureaText;
	private String sTrainsetText;
	private String sLineText;
	private String sDealBureaText;
	private String sFaultTypeText;
	private String sJointrainsetText;
	private String sDealwaysText;

	public TdbYjMEvent() {
	}

	public String getsControlTrain() {
		return sControlTrain;
	}

	public void setsControlTrain(String sControlTrain) {
		this.sControlTrain = sControlTrain;
	}

	public Timestamp getdEventTrackDate() {
		return dEventTrackDate;
	}

	public void setdEventTrackDate(Timestamp dEventTrackDate) {
		this.dEventTrackDate = dEventTrackDate;
	}

	public String getdEventTrackDateStr() {
		return dEventTrackDateStr;
	}

	public void setdEventTrackDateStr(String dEventTrackDateStr) {
		this.dEventTrackDateStr = dEventTrackDateStr;
	}

	public String getdFaulttimeStr() {
		return dFaulttimeStr;
	}

	public void setdFaulttimeStr(String dFaulttimeStr) {
		this.dFaulttimeStr = dFaulttimeStr;
	}

	public String getsStoptimeStr() {
		return sStoptimeStr;
	}

	public void setsStoptimeStr(String sStoptimeStr) {
		this.sStoptimeStr = sStoptimeStr;
	}

	public String getsRuntimeStr() {
		return sRuntimeStr;
	}

	public void setsRuntimeStr(String sRuntimeStr) {
		this.sRuntimeStr = sRuntimeStr;
	}

	public String getsStatus() {
		return sStatus;
	}

	public void setsStatus(String sStatus) {
		this.sStatus = sStatus;
	}

	public String getsStartDate() {
		return sStartDate;
	}

	public void setsStartDate(String sStartDate) {
		this.sStartDate = sStartDate;
	}

	public String getdOperateDate() {
		return dOperateDate;
	}

	public void setdOperateDate(String dOperateDate) {
		this.dOperateDate = dOperateDate;
	}

	public String getsActBureaText() {
		return sActBureaText;
	}

	public void setsActBureaText(String sActBureaText) {
		this.sActBureaText = sActBureaText;
	}

	public String getsTrainsetText() {
		return sTrainsetText;
	}

	public void setsTrainsetText(String sTrainsetText) {
		this.sTrainsetText = sTrainsetText;
	}

	public String getsLineText() {
		return sLineText;
	}

	public void setsLineText(String sLineText) {
		this.sLineText = sLineText;
	}

	public String getsDealBureaText() {
		return sDealBureaText;
	}

	public void setsDealBureaText(String sDealBureaText) {
		this.sDealBureaText = sDealBureaText;
	}

	public String getsFaultTypeText() {
		return sFaultTypeText;
	}

	public void setsFaultTypeText(String sFaultTypeText) {
		this.sFaultTypeText = sFaultTypeText;
	}

	public String getsJointrainsetText() {
		return sJointrainsetText;
	}

	public void setsJointrainsetText(String sJointrainsetText) {
		this.sJointrainsetText = sJointrainsetText;
	}

	public String getsDealwaysText() {
		return sDealwaysText;
	}

	public void setsDealwaysText(String sDealwaysText) {
		this.sDealwaysText = sDealwaysText;
	}

	public String getsEventId() {
		return sEventId;
	}

	public void setsEventId(String sEventId) {
		this.sEventId = sEventId;
	}

	public String getsFlowId() {
		return sFlowId;
	}

	public void setsFlowId(String sFlowId) {
		this.sFlowId = sFlowId;
	}

	public Timestamp getdFaulttime() {
		return dFaulttime;
	}

	public void setdFaulttime(Timestamp dFaulttime) {
		this.dFaulttime = dFaulttime;
	}

	public String getsActBurea() {
		return sActBurea;
	}

	public void setsActBurea(String sActBurea) {
		this.sActBurea = sActBurea;
	}

	public String getsDealBurea() {
		return sDealBurea;
	}

	public void setsDealBurea(String sDealBurea) {
		this.sDealBurea = sDealBurea;
	}

	public String getsTrainno() {
		return sTrainno;
	}

	public void setsTrainno(String sTrainno) {
		this.sTrainno = sTrainno;
	}

	public String getsTrainsetid() {
		return sTrainsetid;
	}

	public void setsTrainsetid(String sTrainsetid) {
		this.sTrainsetid = sTrainsetid;
	}

	public String getsJointrainsetid() {
		return sJointrainsetid;
	}

	public void setsJointrainsetid(String sJointrainsetid) {
		this.sJointrainsetid = sJointrainsetid;
	}

	public String getsFaultdesc() {
		return sFaultdesc;
	}

	public void setsFaultdesc(String sFaultdesc) {
		this.sFaultdesc = sFaultdesc;
	}

	public String getsFaultplace() {
		return sFaultplace;
	}

	public void setsFaultplace(String sFaultplace) {
		this.sFaultplace = sFaultplace;
	}

	public String getsLine() {
		return sLine;
	}

	public void setsLine(String sLine) {
		this.sLine = sLine;
	}

	public Timestamp getsStoptime() {
		return sStoptime;
	}

	public void setsStoptime(Timestamp sStoptime) {
		this.sStoptime = sStoptime;
	}

	public Timestamp getsRuntime() {
		return sRuntime;
	}

	public void setsRuntime(Timestamp sRuntime) {
		this.sRuntime = sRuntime;
	}

	public String getsDealways() {
		return sDealways;
	}

	public void setsDealways(String sDealways) {
		this.sDealways = sDealways;
	}

	public String getsRut() {
		return sRut;
	}

	public void setsRut(String sRut) {
		this.sRut = sRut;
	}

	public String getsFaulttype() {
		return sFaulttype;
	}

	public void setsFaulttype(String sFaulttype) {
		this.sFaulttype = sFaulttype;
	}

	public String getsCreator() {
		return sCreator;
	}

	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	public String getdCreateDate() {
		return dCreateDate;
	}

	public void setdCreateDate(String dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	public String getsEditor() {
		return sEditor;
	}

	public void setsEditor(String sEditor) {
		this.sEditor = sEditor;
	}

	public String getdEditDate() {
		return dEditDate;
	}

	public void setdEditDate(String dEditDate) {
		this.dEditDate = dEditDate;
	}

	public String getcAble() {
		return cAble;
	}

	public void setcAble(String cAble) {
		this.cAble = cAble;
	}

	public String getsEventName() {
		return sEventName;
	}

	public void setsEventName(String sEventName) {
		this.sEventName = sEventName;
	}

	public String getsDept() {
		return sDept;
	}

	public void setsDept(String sDept) {
		this.sDept = sDept;
	}

	public String getsTrainCNumber() {
		return sTrainCNumber;
	}

	public void setsTrainCNumber(String sTrainCNumber) {
		this.sTrainCNumber = sTrainCNumber;
	}

	public String getsParkOrNot() {
		return sParkOrNot;
	}

	public void setsParkOrNot(String sParkOrNot) {
		this.sParkOrNot = sParkOrNot;
	}

	public String getsTrainsetidboxh() {
		return sTrainsetidboxh;
	}

	public void setsTrainsetidboxh(String sTrainsetidboxh) {
		this.sTrainsetidboxh = sTrainsetidboxh;
	}

	public String getsJointrainsetidboxh() {
		return sJointrainsetidboxh;
	}

	public void setsJointrainsetidboxh(String sJointrainsetidboxh) {
		this.sJointrainsetidboxh = sJointrainsetidboxh;
	}

	public String getssTrainType() {
		return sTrainType;
	}

	public void setsTrainType(String sTrainType) {
		this.sTrainType = sTrainType;
	}

	@Override
	protected Serializable pkVal() {
		return this.sEventId;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("TdbYjMEvent [sEventId=").append(sEventId).append(", sFlowId=").append(sFlowId)
				.append(", dFaulttime=").append(dFaulttime).append(", sActBurea=").append(sActBurea)
				.append(", sDealBurea=").append(sDealBurea).append(", sTrainno=").append(sTrainno)
				.append(", sTrainsetid=").append(sTrainsetid).append(", sJointrainsetid=").append(sJointrainsetid)
				.append(", sFaultdesc=").append(sFaultdesc).append(", sFaultplace=").append(sFaultplace)
				.append(", sLine=").append(sLine).append(", sStoptime=").append(sStoptime).append(", sRuntime=")
				.append(sRuntime).append(", sDealways=").append(sDealways).append(", sRut=").append(sRut)
				.append(", sFaulttype=").append(sFaulttype).append(", sCreator=").append(sCreator)
				.append(", dCreateDate=").append(dCreateDate).append(", sEditor=").append(sEditor)
				.append(", dEditDate=").append(dEditDate).append(", cAble=").append(cAble).append(", sEventName=")
				.append(sEventName).append(", sDept=").append(sDept).append("]").append(", sTrainCNumber=")
				.append(sTrainCNumber).append(", sParkOrNot=").append(sParkOrNot).append(", sTrainsetidboxh=")
				.append(sTrainsetidboxh).append(", sJointrainsetidboxh=").append(sJointrainsetidboxh)
				.append(", dEventTrackDate=").append(dEventTrackDate).append(", sControlTrain=").append(sControlTrain);

		return builder.toString();
	}

}
